package day01;
import java.util.Scanner;
public class test7 {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.println("请输入4位会员卡号：");
		int num = input.nextInt();
		int qianWei = num/1000;
		int baiWei = num%1000/100;
		int shiWei = num%100/10;
		int geWei = num%10;
		int sum = qianWei+baiWei+shiWei+geWei;
		boolean flag = sum>20;
		System.out.println("是幸运客户吗？"+flag);

	}

}
